﻿<Page x:Class="PFC.Program.Verification.Pages.Regis"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:PFC.Program.Verification.Pages"
      mc:Ignorable="d" 
      d:DesignHeight="450" 
      d:DesignWidth="800"
      Title="PFC - Регистрация">

    <Grid Background="#FFFF8000">

        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="400"/>
        </Grid.RowDefinitions>

        <!--Кнопка назад-->
        <Button Name="back_Btn"
                TabIndex="0"
                Style="{DynamicResource ButtonStyle}"
                Content="Назад"
                HorizontalAlignment="Left"
                Click="back_Btn_Click"/>

        <!--GroupBox c элементами для регистрации-->
        <GroupBox Style="{DynamicResource GroupBoxStyle}"
                  Header="Регистрация"
                  Width="160"
                  Grid.Row="1"
                  Height="200"
                  HorizontalAlignment="Center"
                  VerticalAlignment="Top"
                  Margin="0 40 0 0">

            <Grid>

                <!--Сетка для элементов в GroupBox-->
                <Grid.RowDefinitions>
                    <RowDefinition Height="60"/>
                    <RowDefinition Height="60"/>
                    <RowDefinition Height="60"/>
                </Grid.RowDefinitions>

                <!--Логин-->
                <TextBlock Grid.Row="0"
                           HorizontalAlignment="Left"   
                           Text="Логин*"
                           FontSize="16"
                           VerticalAlignment="Top"
                           Background="Gray"
                           Padding="3 0 3 0"
                           Foreground="White"
                           Margin="14,10,0,0" Height="20"/>

                <TextBox Name="textBox_login"
                         TabIndex="1"
                         Grid.Row="0"
                         Style="{DynamicResource TextBoxStyle}"
                         HorizontalAlignment="Center" 
                         VerticalAlignment="Top" 
                         MaxLength="30"
                         Margin="0,30,0,0">
                    
                    <TextBox.Resources>
                        <Style TargetType="Border">
                            <Setter Property="CornerRadius" Value="0 5 5 5"/>
                        </Style>
                    </TextBox.Resources>
                    
                </TextBox>

                <!--Пароль-->
                <TextBlock HorizontalAlignment="Left"   
                           Text="Пароль*" 
                           Foreground="White"
                           Background="Gray"
                           Padding="3 0 3 0"
                           FontSize="16"
                           VerticalAlignment="Top" 
                           Margin="14,6,0,0" 
                           Grid.Row="1"/>

                <PasswordBox Name="passwordBox_password"
                             Grid.Row="1"    
                             TabIndex="2"
                             Style="{DynamicResource PasswordBoxStyle}"
                             HorizontalAlignment="Center" 
                             VerticalAlignment="Top" 
                             MaxLength="50"
                             Margin="0,25,0,0"/>
                
                <!--Секретная фраза-->
                <TextBlock Grid.Row="2"
                           HorizontalAlignment="Left"   
                           Text="Фраза"
                           FontSize="16"
                           VerticalAlignment="Top"
                           Background="Gray"
                           Padding="3 0 3 0"
                           Margin="14,6,0,0" 
                           Foreground="White"
                           Height="20"/>

                <TextBox Name="textBox_phrase"
                         TabIndex="3"
                         MaxLength="50"
                         Grid.Row="2"
                         Margin="0,25,0,0"
                         Style="{DynamicResource TextBoxStyle}"
                         HorizontalAlignment="Center" 
                         VerticalAlignment="Top" >
                    <TextBox.Resources>
                        <Style TargetType="Border">
                            <Setter Property="CornerRadius" Value="0 5 5 5"/>
                        </Style>
                    </TextBox.Resources>
                </TextBox>

            </Grid>

        </GroupBox>

        <!--Кнопка регистрации-->
        <Button Style="{DynamicResource ButtonStyle}"
                Grid.Row="2"
                TabIndex="4"
                Width="160"
                Margin="0 0 0 120"
                VerticalAlignment="Bottom"
                Content="Зарегистрироваться" 
                Click="button_Registration_Click">
        </Button>

    </Grid>
</Page>
